package com.andy.customerService.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

@Getter
@NoArgsConstructor
@AllArgsConstructor
public enum ExceptionEnum {

    //通用
    ID_CANNOT_BE_NULL(400,"ID不能为空"),
    TOKEN_VALIDATE_ERROR(500,"token校验异常"),

    //user
    USER_ID_CAN_NOT_BE_NULL(400,"用户id不能为空"),
    PASSWORD_CANNOT_BE_NULL(400,"密码不能为空"),
    NOT_FOUND(400,"未查到信息"),

    //组织机构
    ORG_ID_CAN_NOT_BE_NULL(400,"组织机构id不能为空"),
    //角色
    ROLE_ID_CAN_NOT_BE_NULL(400,"角色id不能为空"),
    ROLE_CODE_EXIT(400,"角色编码已存在")
    ;

    private int code;
    private String message;
}
